package kr.hkit.powerjava.chapter12.submit; //프로그래밍 6번 부모클래스

class Book {
	int number ;
	String title;
	String author;
	
	public Book(int number, String title, String author) {
		this.number = number;
		this.title = title;
		this.author = author;
	}
	
	public Book() {
	}
	
	public int getNumber() {
		return number;
	}
	public void setNumber(int number) {
		this.number = number;
	}
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public String getAuthor() {
		return author;
	}
	public void setAuthor(String author) {
		this.author = author;
	}
	
	public boolean equals(Object obj){
		if(obj instanceof Book) {
		return number==(((Book)obj).number);
		}else{
		return false;
		}
	}
	
	public int getLateFees(int lateDay){
		return lateDay;
	}

	@Override
	public String toString() {
		return "도서 정보 [관리번호="+number+ ", 제목=" + title + ", "
				+ "저자=" + author +"]";
	}
}
